package com.painarthur.rbac.action;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;

import org.apache.struts2.ServletActionContext;

import com.opensymphony.xwork2.ActionContext;
import com.opensymphony.xwork2.ActionSupport;
  
public class BaseAction extends ActionSupport{  
    private static final long serialVersionUID = 8570298190546820694L;  
      
    public ActionContext actionContext = ActionContext.getContext();  
    public HttpServletRequest request = (HttpServletRequest) actionContext.get(ServletActionContext.HTTP_REQUEST);  
    public HttpServletResponse response = (HttpServletResponse) actionContext.get(ServletActionContext.HTTP_RESPONSE);  
      
    //public ServletContext  application = (ServletContext)actionContext.getApplication();  
    public HttpSession session = request.getSession();  
}  